package cn.wanda.bi.sunshine.platform.server.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import cn.wanda.bi.sunshine.platform.server.bean.mapper.UserLabelAuthAppidMapper;
import cn.wanda.bi.sunshine.platform.server.bean.model.UserLabelAuthAppid;
import cn.wanda.bi.sunshine.platform.server.bean.model.UserLabelAuthAppidExample;

/**
 * Created by wangfupeng1
 */
@Service
public class UserLabelAuthAppidService {

	public static final Logger logger = LoggerFactory.getLogger(UserLabelAuthAppidService.class);

	@Autowired
	private UserLabelAuthAppidMapper userLabelAuthAppidMapper;

	@Cacheable(value="cache:userlabelauthappid",key = "'cache:userlabelauthappid:appid:'+#appid")
    public List<UserLabelAuthAppid> getUserLabelAuthAppids(UserLabelAuthAppidExample dimUserLabelAllAuthAppidExample,String appid){
    	return userLabelAuthAppidMapper.selectByExample(dimUserLabelAllAuthAppidExample);
    }

}
